﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JavaScript遍历数组</title>
    <script type="text/javascript" language="JavaScript">
        var a = new Array("a","b","c"); 
        for(i in a){
            alert(a[i]);
        }
    </script>
</head>
<body>

</body>
</html>